//
//  WBCommonTools.swift
//  weibo
//
//  Created by yanghong on 15/12/9.
//  Copyright © 2015年 杨鸿. All rights reserved.
//

import UIKit

let WBSwitchRootVCNotification = "WBSwitchRootVCNotification"

let SCREENWIDTH = UIScreen.mainScreen().bounds.size.width

let SCREENHEIGHT = UIScreen.mainScreen().bounds.size.height

func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    return UIColor(red: red / 255, green: green / 255 , blue: blue / 255, alpha: 1)
}
func RandomColor() -> UIColor {
    return RGB(red: CGFloat(random() % 256), green: CGFloat(random() % 256), blue: CGFloat(random() % 256))
}